package com.blkj.framework.auth.util;

import cn.hutool.core.util.ArrayUtil;
import org.springframework.util.StringUtils;

import javax.servlet.http.HttpServletRequest;

/**
 * @author 北浪 2021/11/19
 */
public class FilterUtil {

    private static final String[] staticResource = {".css",".js",".jpg",".png"};

    /**
     * 是否为静态资源
     */
    public static boolean isStaticResource(HttpServletRequest request){
        String url = request.getRequestURI();
        for (String s : staticResource){
            if (url.contains(s)){
                return true;
            }
        }
        return false;
    }
}
